home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / t_sys5 / unixcpio.gz / unixnet.cpio / mac_at.h < prev    next >
C/C++ Source or Header  |  1994-07-11  |  1KB  |  41 lines

  1. #include <appletalk.h>
  2. /* Stuff specific to the AppleTalk network */
  3. #define    AT_MAX    1    /* Only one controller supported */
  4. extern unsigned nat;    /* Actual number of Ethernet controllers */
  5. extern  char appletalk_bdcst;
  6. #define APPLEADDRLEN 4
  7. #define APPLE_LEN 1
  8. #define    AIP_TYPE    0xDD    /* Type field for IP */
  9. #define    AARP_TYPE    0xDE    /* Type field for ARP */
  10.  
  11. struct appletalk {
  12.     char source;
  13.     char dest;
  14.     int16    type;
  15. };
  16.  
  17. /* miscellaneous sizes */
  18. #define    BFRSIZ        2048    /* number of bytes in a buffer */
  19. #define MAX_ATBUF    600-10    /* max on appletalk */
  20. struct astats {
  21.     long ints;        /* Interrupts */
  22.     long any;        /* Good packets received */
  23.     long drop;
  24.     long badsize;
  25.     long out;        /* Total output packets */
  26.     long badtype;    /* Packets with unknown type fields */
  27.     long nomem;        /* Dropped because buffer malloc failed */
  28. };
  29. struct at {
  30.     ABByte ProtoType;    /* Protocol Type for AppleTalk */
  31.     ABRecHandle rdATptr;    /* need to have a handle for the apple bus */
  32.     ABRecHandle wrATptr;    /* need to have a handle for the apple bus */
  33.     char *net;        /* Device name */
  34.     char     buffer[MAX_ATBUF];
  35.     struct mbuf *rcvq;    /* Queue of incoming packets */
  36.     unsigned rcvcnt;    /* Number of packets on queue */
  37.     unsigned rcvmax;    /* Maximum length of rcvq */
  38.     struct astats astats;    /* Controller statistics */
  39. };
  40. extern struct at at[];
  41.